/*
 * @ author madman
 * @ use 充值记录
 */
var mongoose = require("mongoose");
var Schema = mongoose.Schema;
var shortid = require('shortid');
var topupSchema = new Schema({
    _id: {
      type: String,
      'default': shortid.generate
    },
    // 号码
    msisdn: {
      type: String
    },
    //国家代码
    dialingPrefix: {
      type: String
    },
    // 区域
    countryName: {
        type: String
    },
    // 充值金额
    price: {
      type: String
    },
    // 充值时间
    createdAt: {
      type: Date,
      default: Date.now
    }
});

module.exports = mongoose.model('j_topup', topupSchema, 'j_topup');